//
//  NSDictionary+DataFormat.h
//  OMS
//
//  Created by ; on 14/10/21.
//  Copyright (c) 2014年 ShangHai Goldeneye Techonology Co.,Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDictionary (DataFormat)

- (id)objectFormatForKey:(id)aKey;

- (NSString*)objectFormatStringForKey:(id)aKey;

- (NSInteger)objectFormatIntegerForKey:(id)aKey;
- (NSString*)objectFormatIntStringForKey:(id)aKey;
- (NSNumber*)objectFormatIntegerNumberForKey:(id)aKey;

- (NSNumber*)objectFormatFloatNumberForKey:(id)aKey;
- (CGFloat)objectFormatFloatForKey:(id)aKey;
- (NSString*)objectFormatFloatStringForKey:(id)aKey retain:(int)digit;

#pragma mark 其他延伸方法

- (NSString*)objectFormatStringForKey:(id)aKey defaults:(NSString*)defaultValue;
- (NSString*)objectFormatStringForKey:(id)aKey format:(NSString*)format defaults:(NSString*)defaultValue;
- (NSString*)objectFormatFloatStringForKey:(id)aKey retain:(int)digit format:(NSString*)format;
- (NSString*)objectFormatFloatStringForKey:(id)aKey retain:(int)digit except:(int)except exceptFormat:(NSString*)exceptStr format:(NSString*)format;
- (CGFloat)objectFormatFloatForKey:(id)aKey retain:(int)digit except:(int)except;
- (NSString*)objectFormatTimeStringForKey:(id)aKey inFormat:(NSString*)inFormat outFormat:(NSString*)outFormat;
- (NSString*)objectFormatFloatForKey:(id)aKey retain:(int)digit except:(int)except format:(NSString*)format;

@end
